<template>
  <div class="loading">
    <u-loading-page
      :loading="true"
      bg-color="rgba(0, 0, 0, 0.4)"
    ></u-loading-page>
  </div>
</template>

<script setup>
import { ref, onMounted } from "vue";
import { useLogin } from "@/hooks/useLogin";

const { login } = useLogin();

onMounted(async () => {
  await login();
});
</script>

<style lang="less" scoped>
.loading {
  width: 100vw;
  height: 100vh;
  background: url("http://xishifile.oss-cn-hangzhou.aliyuncs.com/202307/23/QcNzeJZysx.jpg")
    no-repeat;
  background-size: cover;
}
</style>
